﻿using System;
using System.Collections.Generic;

namespace SBPweb.Modules.Smartparts
{
    /// <summary>
    /// This interface inherites from the IList interface.
    /// The IMenuList represents a list of menu items, where the menu items implements the IMenuItem interface.
    /// </summary>
	public interface IMenuList : IList<IMenuItem>
    {
        /// <summary>
        /// Gets the array of the IMenuItem items.
        /// </summary>
        IMenuItem[] MenuItems
        {
            get;
        }

        /// <summary>
        /// Occurs, when a new item is added to the list.
        /// </summary>
        event EventHandler<MenuEventArgs> ItemAdded;

        /// <summary>
        /// Occurs, when an item is removed from the list.
        /// </summary>
        event EventHandler<MenuEventArgs> ItemRemoved;

    }

}